[IT] Admin feature

Wednesday, 04 August 2021 07:20:55
Total Iterations

1

Total Assertions

7

Total Failed Tests

7

Total Skipped Tests

0


File Information
Collection: [IT] Admin feature
Environment: Nightlies
Collection Description
``` Feature: Basic admin's features Scenario: Create a user by email/password with valid admin token When I create a user with a valid admin token Then I should get status 200 Scenario: Create a user by email/password with invalid admin token When I create a user with an invalid admin token Then I should get status 403 ```
Timings and Data
Total run duration: 7.6s
Total data received: 1.38KB
Average response time: 1419ms
Summary Item Total Failed
Requests 5 0
Prerequest Scripts 7 0
Test Scripts 10 0
Assertions 7 7
Skipped Tests 0 -



Showing 7 Failures

Failed Test: Connect endpoint should return 200 when login with valid admin

Assertion Error Message
expected response to have status code 200 but got 503
Failed Test: Connect endpoint should return access_token and refresh_token

Assertion Error Message
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
Failed Test: Admin user can create a new user

Assertion Error Message
expected response to have status code 200 but got 503
Failed Test: Connect endpoint should return 200 when login with created user

Assertion Error Message
expected response to have status code 200 but got 503
Failed Test: Connect endpoint should return access_token and refresh_token for a user

Assertion Error Message
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
Failed Test: User creation returns 403 when using invalid admin token

Assertion Error Message
expected response to have status code 403 but got 503
Failed Test: Error code should be invalid_token

Assertion Error Message
Unexpected token '<' at 1:1
<!DOCTYPE html>
^


There are no skipped tests



1 Iteration available to view
Request Information
Request Method: POST
Request URL: http://varnish/connect/oauth/token
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 19ms
Mean size per request: 282B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/x-www-form-urlencoded
Pragma no-cache
Accept application/json, text/plain, */*
Host varnish
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token 0d66a640-f605-4906-88ad-24238aac3847
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 211
Request Body
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"admin@whoozer.fr","password":"wh00zerp0w3r","scope":"mobile_app admin_scopes"}
Response Headers
Header NameHeader Value
Date Wed, 04 Aug 2021 07:20:48 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 282
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 66210</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
Connect endpoint should return 200 when login with valid admin 0 1 0
Connect endpoint should return access_token and refresh_token 0 1 0
Total 0 2 0
Test Failures
Test NameAssertion Error
Connect endpoint should return 200 when login with valid admin
expected response to have status code 200 but got 503
Connect endpoint should return access_token and refresh_token
Unexpected token '<' at 1:1
        <!DOCTYPE html>
        ^
Request Information
Request Method: POST
Request URL: http://varnish/api/users/
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 3.5s
Mean size per request: 282B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/json
Accept application/json, text/plain, */*
Authorization OAuth=""
Accept-Encoding br, gzip, deflate
Host api-preprod.happn.com
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token c468e0bf-fa89-4722-a92a-6c83cf86ece4
Connection keep-alive
Content-Length 179
Request Body
{
            "type": "CLIENT",
            "gender": "female",
            "login": "main.user_1628061648482@example.com",
            "first_name": "fake",
            "last_name": "user",
            "password": "00000000"
        }
Response Headers
Header NameHeader Value
Date Wed, 04 Aug 2021 07:20:51 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 282
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 66212</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
Admin user can create a new user 0 1 0
Total 0 1 0
Test Failure
Test NameAssertion Error
Admin user can create a new user
expected response to have status code 200 but got 503
Request Information
Request Method: POST
Request URL: http://varnish/connect/oauth/token
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 14ms
Mean size per request: 283B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/x-www-form-urlencoded
Pragma no-cache
Accept application/json, text/plain, */*
Host varnish
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token f55896d3-259e-4ea5-96bb-687ebe658614
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 211
Request Body
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"main.user_1628061648482@example.com","password":"00000000","scope":"mobile_app"}
Response Headers
Header NameHeader Value
Date Wed, 04 Aug 2021 07:20:52 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 283
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 524684</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
Connect endpoint should return 200 when login with created user 0 1 0
Connect endpoint should return access_token and refresh_token for a user 0 1 0
Total 0 2 0
Test Failures
Test NameAssertion Error
Connect endpoint should return 200 when login with created user
expected response to have status code 200 but got 503
Connect endpoint should return access_token and refresh_token for a user
Unexpected token '<' at 1:1
        <!DOCTYPE html>
        ^
Request Information
Request Method: DELETE
Request URL: http://varnish/api/users/%7B%7BuserAId%7D%7D?to_delete=true
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 51ms
Mean size per request: 283B

Test Pass Percentage
No Tests for this request
Request Headers
Header NameHeader Value
Host varnish
CF-IPCountry FR
Cookie
Authorization OAuth=""
User-Agent PostmanRuntime/7.26.8
Accept */*
Cache-Control no-cache
Postman-Token 70c01590-f506-4742-b93d-d608f6c965ff
Accept-Encoding gzip, deflate, br
Connection keep-alive
Response Headers
Header NameHeader Value
Date Wed, 04 Aug 2021 07:20:52 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 283
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 524686</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
No Tests for this request
Request Information
Request Method: POST
Request URL: http://varnish/api/users/
Response Information
Response Code: 503 - Backend fetch failed
Mean time per request: 3.5s
Mean size per request: 283B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/json
Accept application/json, text/plain, */*
Authorization OAuth="invalidToken"
Accept-Encoding br, gzip, deflate
Host api-preprod.happn.com
User-Agent PostmanRuntime/7.26.8
Cache-Control no-cache
Postman-Token f68d47ee-d208-4ac6-a07c-f6844b29ae40
Connection keep-alive
Content-Length 179
Request Body
{
            "type": "CLIENT",
            "gender": "female",
            "login": "main.user_1628061652373@example.com",
            "first_name": "fake",
            "last_name": "user",
            "password": "00000000"
        }
Response Headers
Header NameHeader Value
Date Wed, 04 Aug 2021 07:20:55 GMT
Content-Type text/html; charset=utf-8
Retry-After 5
Age 0
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Content-Length 283
Connection keep-alive
Response Body
<!DOCTYPE html>
        <html>
          <head>
            <title>503 Backend fetch failed</title>
          </head>
          <body>
            <h1>Error 503 Backend fetch failed</h1>
            <p>Backend fetch failed</p>
            <h3>Guru Meditation:</h3>
            <p>XID: 622953</p>
            <hr>
            <p>Varnish cache server</p>
          </body>
        </html>
        
Test Information
NamePassedFailedSkipped
User creation returns 403 when using invalid admin token 0 1 0
Error code should be invalid_token 0 1 0
Total 0 2 0
Test Failures
Test NameAssertion Error
User creation returns 403 when using invalid admin token
expected response to have status code 403 but got 503
Error code should be invalid_token
Unexpected token '<' at 1:1
        <!DOCTYPE html>
        ^